Ext.define('NMC.store.UsersStore', {
    extend: 'Ext.data.Store',
    model: 'NMC.model.UserModel',
    storeId: 'UsersStore',
    autoLoad: true,
    groupField: 'group_name',
    
    proxy: {
        type: 'ajax',
        api: {
            read: './users'
        },
        reader: {
            type: 'json',
            root: 'results',
            successProperty: 'success'
        }
    }
});